package com.myschool.server.dao;

import java.util.List;

import org.myschool.common.exception.ApplicationException;
import org.springframework.stereotype.Repository;

import com.myschool.server.dao.support.BaseEntityDao;
import com.myschool.server.model.User;
import com.myschool.server.model.UserType;

@Repository
public interface UserDao extends BaseEntityDao<User> {

	public boolean validateUserLogin(User user);

	public User retrieveUser(User user);

	public User retrieveUserByEmail(String email) throws ApplicationException;
	
	public List<User> retrieveUserByType(UserType userType);

	List<User> retrieveStudentBySection(Long section);

}
